from rest_framework.routers import DefaultRouter
from .views import *
# 2. 实例化DefaultRouter
router = DefaultRouter()
# 3. 注册应用url
router.register('tcbases',TeacherBaseViewset,basename='tcbases')
router.register('tcschools',TeacherSchoolViewset,basename='tcschools')
router.register('tcfamilys',TeacherFamilyViewset,basename='tcfamilys')
router.register('tcexpends',TeacherExpendViewset,basename='tcexpends')
router.register('tcbaseexpends',TeacherBaseExpendViewset,basename='tcbaseexpends')

urlpatterns = [

]
#4.附加
urlpatterns += router.urls